//正例
const arg = new RegExp('foo');
const msg1 = `arg = ${arg}`;

const arg1 = /foo/;
const msg11 = `arg = ${arg}`;